package schemax

type InterfaceDecl struct {
	//
	Namespace string

	Comments []string
	//
	Name string
	//
	Kind int
	//
	Fields []*Field
}

func (decl *InterfaceDecl) GetName() string {
	return decl.Name
}

func (decl *InterfaceDecl) GetNamespace() string {
	return decl.Namespace
}

func (decl *InterfaceDecl) GetIdent() string {
	if decl.Namespace != "" {
		return decl.Namespace + "/" + decl.Name
	}
	return decl.Name
}

func (decl *InterfaceDecl) RefType() string {
	return "interface"
}
